package com.pagoda.nerp.trade.service;

import com.pagoda.nerp.trade.entity.MdAccount;

import java.util.List;
import java.util.Map;

public interface MdAccountService {

	public MdAccount queryAccountByOpenId(String openId);

	public int getCountByAccount(String account);

	public int insert(MdAccount mdAccount);

	// 获取子账户列表 - （包含子账户角色列表）
	public Object listMdAccount(Map map) throws Exception;

	// 新增账户信息
	public int addNewMdAccount(Map map) throws Exception ;

	// 根据条件删除子账户
	public void deleteMdAccount(Map map) throws Exception;

	// 设置供应商子账户权限
	public void bindMdAccountRole(Map map) throws Exception;

	public MdAccount selectByAccount(String account);

	public List<MdAccount> selectByCondition(Integer vendorId);

	public int updateOpenId(MdAccount account);

	public int addAccount(String account,Integer vendorId) throws Exception;

	public boolean isContainUniqueRole(Map map);
	
	public int updateStatus(Map map);
}
